package com.framework.bdf4j.comm.startup;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

import com.framework.bdf4j.sysadm.service.SysDictItemService;

/**
 * <b>文件名： </b>StartupRunner.java<br/>
 * <b>类描述： </b>启动加载类<br/>
 */
@Component
@Order(value=1)
public class StartupRunner implements CommandLineRunner{

	@Autowired
	private SysDictItemService sysDictItemService;
	
	/* 
	 * @see org.springframework.boot.CommandLineRunner#run(java.lang.String[])
	 */
	@Override
	public void run(String... arg0) throws Exception {
		// 启动时加载数据字典信息
	    sysDictItemService.selectDictionaryInfo();		
	}

}
